<?php
$con = mysql_connect("localhost","root","root");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("devildark", $con);
$dateTime = date("Y-m-d",strtotime("-1 day"));

mysql_query("INSERT INTO devildark SELECT NULL, deviceid,DailyGDLost,RegisterTime ,RegisterDate ,LevelInfo,DailyGamingTime,GamingTime,DailyTCTimes,DailyLoginTimes,DailyGDExchangeTimes,DailyGDGetFromGame ,DailyGDGetFromTC,DailyTCGet,JailBreak ,GDGet,
  TCGet,DataTime ,DataTimes,DailyPlayerExpGet,CurrentTC,CurrentPlayerLevel,DailyTCLost,CurrentGD ,gamename,createdate,date  FROM  devildark_query_temp");

mysql_close($con);
?>